﻿// -------------------------------------------------------------------------
//    @FileName         :    NFGMPart.cpp
//    @Author           :    gaoyi
//    @Date             :    24-8-29
//    @Email            :    445267987@qq.com
//    @Module           :    NFGMPart
//
// -------------------------------------------------------------------------

#include "NFGMPart.h"

NFGMPart::NFGMPart()
{
    if (EN_OBJ_MODE_INIT == NFShmMgr::Instance()->GetCreateMode())
    {
        CreateInit();
    }
    else
    {
        ResumeInit();
    }
}

NFGMPart::~NFGMPart()
{
}

int NFGMPart::CreateInit()
{
    return 0;
}
    
int NFGMPart::ResumeInit()
{
    return 0;
}

int NFGMPart::Init(NFPlayer *pMaster, uint32_t partType, const proto_ff::tbRoleDetail *pDBData)
{
    return 0;
}

int NFGMPart::UnInit()
{
    return 0;
}

int NFGMPart::RegisterMessage()
{
    return 0;
}

int NFGMPart::OnHandleClientMessage(uint32_t msgId, NFDataPackage &packet)
{
    return 0;
}

int NFGMPart::OnHandleServerMessage(uint32_t msgId, NFDataPackage &packet)
{
    return 0;
}

int NFGMPart::RegisterClientMessage(uint32_t nMsgID, bool createCo)
{
    return 0;
}

int NFGMPart::RegisterServerMessage(uint32_t nMsgID, bool createCo)
{
    return 0;
}
